#include<stdio.h>
int main()
{
    int peo[6][2] = {
        {137813,34},
        {341972,55},
        {229592,93},
        {279522,94},
        {284287,27},
        {439745,85}
    };
    int i, j;
    int n = 6;
    int temp=0;
  
    for (i = 0; i < n; i++)
        for (j = 0; j < n - 1; j++)
            if (peo[j][1] < peo[j + 1][1])
            {
                int y = peo[j][1];
                peo[j][1] = peo[j + 1][1];
                peo[j + 1][1] = y;
                int x = peo[j][0];
                peo[j][0] = peo[j + 1][0];
                peo[j + 1][0] = x;
            }

    for (i = 0; i < n; i++)
    {
        for (j = 0; j < 2; j++)
            printf("%d ", peo[i][j]);
        printf("\n");
    }
    return 0;
}